<template>
  <a-layout-footer class="footer">
    Copyright {{ copyright }}
  </a-layout-footer>
</template>

<script lang="ts">
import { defineComponent, ref } from "vue";
import { useConfigStore } from "@/store";

export default defineComponent({
  setup() {
    const configStore = useConfigStore();
    const copyright = ref("");

    copyright.value = configStore.findValue("site_copyright");

    return { copyright };
  },
});
</script>

<style lang="less" scoped>
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  color: var(--color-text-2);
  text-align: center;
}
</style>
